package com.ifox.hgx.spring.annotation.generic;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Copyright (C), 2017-2018, 成都艾弗克斯科技有限公司
 * Author:   hanguixian
 * Date:     2018/10/21 14:12
 * Description:
 */
public class TestGeneric {
    private static ClassPathXmlApplicationContext context;

    static {
        context = new ClassPathXmlApplicationContext("beans-annotation.xml");
    }

    @Test
    public void test1(){
        StudentService studentService = context.getBean(StudentService.class) ;

        studentService.save(new Student());
    }


}
